<?php
		$sql = 'SELECT * FROM '.Tbladvertise::tbladvertise.'  WHERE  '.Tbladvertise::status.' = 1  AND  '.Tbladvertise::page.' = 0  AND ' .Tbladvertise::position. ' = "right" ORDER BY '.Tbladvertise::date_modified.' DESC LIMIT 3';
		$result = mysql_query($sql);
	if(mysql_num_rows($result)>0){
		echo '<div class="box pav-custom">
				<div class="box-content">
					<div class="youtube-player" style="padding:10px;">';
		 			while ($row = mysql_fetch_object($result)) {?>
					<div class="image" style="overflow:hidden;text-align:center;">
						<a href="<?php echo $row->{Tbladvertise::link} ?>" target="_blank">
							<img class="image_product_tap" src="<?php echo 'images/advertise/' . $row->{Tbladvertise::image} . '"'; ?>" style="margin:auto;width:100%;border:0px solid #063;"/>
						</a>
					</div><p></p>
						<?php
					}
			echo '</div></div>';
	 }
?>